﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;
using System.Collections;

namespace DelonixRegiaHMSys.Core.Services
{
    public class gccdService
    {
        private readonly IGuestCreditCardDetailsQuery _guestCreditCardDetailsQuery;
        public gccdService(IGuestCreditCardDetailsQuery guestCreditCardDetailsQuery)
        {
            _guestCreditCardDetailsQuery = guestCreditCardDetailsQuery;
        }

        public IEnumerable<GuestCreditCardDetails> GetAllCreditCardDetails()
        {
            return _guestCreditCardDetailsQuery.GetAllCreditCardDetails();
        }
        public  void AddCreditCardDetail(string creditCardNum, string cardHolderName, string guestID, string cardType, DateTime cardExpirationDate)
        {
            _guestCreditCardDetailsQuery.AddCreditCardDetail( creditCardNum, cardHolderName, guestID, cardType, cardExpirationDate); 
        }
        public void DeleteCreditCardDetail(string creditCardNum)
        {
            _guestCreditCardDetailsQuery.DeleteCreditCardDetail(creditCardNum);
        }


    }
}
